<!-- eslint-disable vue/max-attributes-per-line -->
<!-- eslint-disable vue/html-closing-bracket-newline -->
<template>
  <div class="department-container">
    <div class="app-container">
      <el-card>
        <!-- 具体页面结构 -->
        社保管理
        <el-button
          icon="el-icon-edit"
          type="success"
          @click="dialogFormVisible = true"
          >新增学科</el-button
        >
        <el-dialog title="新增学科" :visible.sync="dialogFormVisible">
          <el-form :model="form">
            <el-form-item label="学科名称" :label-width="formLabelWidth">
              <el-input v-model="form.name" autocomplete="off" />
            </el-form-item>
            <el-form-item label="是否显示" :label-width="formLabelWidth">
              <el-tooltip :content="'Switch value: ' + value" placement="top">
                <el-switch
                  v-model="value"
                  active-color="#13ce66"
                  inactive-color="#ff4949"
                  active-value="100"
                  inactive-value="0"
                />
              </el-tooltip>
            </el-form-item>
          </el-form>
          <div slot="footer" class="dialog-footer">
            <el-button @click="dialogFormVisible = false">取 消</el-button>
            <el-button type="primary" @click="dialogFormVisible = false"
              >确 定</el-button
            >
          </div>
        </el-dialog>
      </el-card>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      value: '100',
      dialogTableVisible: false,
      dialogFormVisible: false,
      form: {
        name: ''
      },
      formLabelWidth: '120px'
    }
  }
}
</script>
